from flask import Flask
from flask_cors import *


def create_app():
    app = Flask(__name__)
    CORS(app, supports_credentials=True)
    app.config.from_object('config')
    register_blueprint(app)
    return app


def register_blueprint(app):
    from app.web.user import web
    app.register_blueprint(web)
